﻿.file-browser {
    width: 90%;
    height: 80%;
    margin-left: -45%;
    top: 10% !important;
}

.file-browser h1 {
    float: left;
}

.file-browser .browser {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    margin: 0 -30px;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

.browser div,
.browser ul,
.browser li {
    font-size: inherit;
}

.browser .toolbar {
    position: absolute;
    bottom: 0;
    left: 12em;
    right: 0;
    padding: 0 1.5em;
    background: #eee;
    font-size: 1em;
    line-height: 3;
    text-align: center;
    color: #888;
    cursor: pointer;
}

.browser .toolbar button.button {
    font-size: 14px;
}

.file-browser ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.browser .folders {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 13.3333em;
    font-size: 0.9em;    
    z-index: 9999;
    border-right: 2px solid #CCC;
}

.browser .folders li {
    display: block;
    border-bottom: 1px solid #E6E6E6;
}

.browser .folders li a {
    display: block;
    padding: 0.625em 0.75em;
    border-left: 3px solid transparent;
    overflow: hidden;    
    text-decoration: none;
    color: inherit;
}

.browser .folders li:nth-child(even) a {
    /*background: #F7F7F7;*/

}

.browser .folders li a:hover, .browser .folders li a.active {
    border-left: 3px solid #2ba6cb;
    background: #f7f7f7;
    color: #222;
}

.browser .folders i {
    margin-right: 0.5em;
    color: #555;
}

.file-browser-dropzone {
    display: block;
    margin: 0 1em;
    top: 2em;
}

.dropzone.file-browser-dropzone {
    min-height: 68px;
    padding: 0;
}

.browser .files {
    position: relative;
    height: 100%;
    padding-left: 12em;
    font-size: inherit;
}

.browser .files .close-reveal-modal {
    position: absolute;
    top: 0;
    right: 0;
    width: 2em;
    background: rgba(0, 0, 0, 0.2);
    font-size: 1.25em;
    line-height: 2;
    text-align: center;
    text-shadow: none;
    color: white;
    cursor: pointer;
}

.browser .files .close-reveal-modal:hover {
    background: rgba(0, 0, 0, 0.5);
}

.browser .files__list {
    position: absolute;
    top: 2.5em;
    bottom: 3em;
    left: 12em;
    right: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    opacity: 0;
    transition: opacity 0.2s ease-in-out,
                top 0.2s ease-in-out;
}

.browser .files__list.active {
    opacity: 1;
}

.browser .files__list li {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.browser .files__list li:nth-child(even) .file {
    background: #f7f7f7;
}

.browser .files__list li .file {
    display: block;
    position: relative;
    width: 100%;
    padding: 1em 1em 1em 5.5em;
    background: white;
    text-decoration: none;
    color: inherit;
}

.browser .files__list li .file i {
    width: 1.5em;
    margin-right: 0.5em;
    text-align: center;
}

.browser .files__list li > .thumbnail {
    display: block;
    position: absolute;
    width: 57px;
    height: 57px;
    overflow: hidden;
    z-index: 1;
    margin-left: 1em;
}

.browser .files__list li > .thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: none;
    height: auto;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

.browser .files__list li > .thumbnail > i {
    width: 100%;
    background: #e8a17d;
    font-size: 1.5em;
    line-height: 57px;
    text-align: center;
    color: white;
}

.browser .files__list li > .thumbnail .zoom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.browser .files__list li > .thumbnail .zoom:hover {
    opacity: 1;
}

.browser .files__list li > .thumbnail .zoom i {
    width: 100%;
    font-size: 1.5em;
    line-height: 2.3333;
    text-align: center;
    color: white;
}

.browser .files__list .insert {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    width: 6em;
    margin-top: -3em;
    padding: 2em 0.5em;
    background: #2ba6cb;
    font-size: 14px;
    text-align: center;
    color: white;
    cursor: pointer;
}

.csstransforms .browser .files__list .insert {
    margin-top: 0;
    -webkit-transform: translateY(-50%);
       -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
         -o-transform: translateY(-50%);
            transform: translateY(-50%);
}

.browser .files__list .insert:hover {
    background: white;
    color: #2ba6cb;
}

.browser .files__list .file .insert {
    width: 7em;
}

.browser .files__list .settings {
    position: relative;
    width: 100%;
    max-height: 0;
    padding: 0 6em 0 0;
    background: #eee;
    font-size: 0.75em;
    color: #222;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.browser .files__list .settings.active {
    max-height: 6em;
}

.browser .files__list .settings .input-group {
    display: inline-block;
    margin-right: 2em;
}

.browser .files__list .settings label {
    display: inline-block;
    margin: 0;
    color: inherit;
    transition: background 0.2s ease-in-out;
}

.browser .files__list .settings label.input-error,
.browser .files__list .settings label.input-error .input-label {
    background: #E94949;
}

.browser .files__list .settings .input-label {
    display: inline-block;
    padding: 0.5em 1em;
    background: #ddd;
    color: inherit;
}

.browser .files__list .settings input {
    margin: 0 1em;
    border: 1px solid #ccc;
    color: #222;
}

.browser input {
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: inline;
    font-size: inherit;
    padding: 0;
}